<?php
$this->breadcrumbs = array(
    'MLM System',
    'Activation Cards' => array('list'),
    'Activate',
);

//action list
$this->menu = array(
    array('label' => 'List of Activation Cards', 'url' => array('list')),
);

//action create
/*
if (Yii::app()->user->administrator_group_type == 'superuser') {
    array_push($this->menu, array('label' => 'Generate Activation Cards', 'url' => array('create')));
}
*/
?>
<?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/success.png">
        <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
<?php endif; ?>
<?php if (Yii::app()->user->hasFlash('error')): ?>
    <div class="alert alert_grey">
        <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
        <?php echo Yii::app()->user->getFlash('error'); ?>
    </div>
<?php endif; ?>
<div class="flat_area grid_16">
    <h2>Activation Cards Activate</h2>
</div>
<div class="box grid_16 round_all">
    <h2 class="box_head grad_colour">&nbsp;</h2>
    <a href="#" class="grabber">&nbsp;</a>
    <a href="#" class="toggle">&nbsp;</a>
    <div class="toggle_container">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'sys-serial-form',
            'enableAjaxValidation' => false,
            'htmlOptions' => array('enctype' => 'multipart/form-data'),
                ));
        ?>
        <div class="block">
            <div class="alert alert_grey">
                <img height="24" width="24" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/grey/alert_2.png">
                Fields with <span class="required"><strong>*</strong></span> are required.
            </div>

            <label for="sys_serial_serial_id_start">Serial ID</label>
            <label for="sys_serial_serial_id_start">From</label>
            <input size="20" maxlength="20" name="sys_serial[serial_id_start]" id="sys_serial_serial_id_start" type="text" />
            <label for="sys_serial_serial_id_end">To</label>
            <input size="20" maxlength="20" name="sys_serial[serial_id_end]" id="sys_serial_serial_id_end" type="text" />

            <div class="input_group">
                <label for="sys_serial_option_1">Option</label>
                <input type="radio" name="sys_serial[option]" id="sys_serial_option_1" value="1" checked />Activate
                <input type="radio" name="sys_serial[option]" id="sys_serial_option_0" value="0" />DeActivate
            </div>

            <button class="button_colour round_all"><img height="24" width="24" alt="Bended Arrow Right" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/bended_arrow_right.png"><span>Activate</span></button>

        </div>

        <?php $this->endWidget(); ?>

        <!-- form -->
    </div>
</div>